//============================================================================
//	警告: 这个文件是使用2009-8-28 17:56:54建立的IBatisNetGen.DaoIntf.cst生成的.
//				重新生成时,原先手动做的修改将会丢失.
//============================================================================
using System;
using System.Collections.Generic;
using System.Text;
using Bino.ExamOnline.Components.Entitys;

namespace Bino.ExamOnline.Components.Interface 
{
    /// <summary><c>ISubjectDao</c>是<see cref="Bino.ExamOnline.Components.Entitys.Subject, Bino.ExamOnline.DataProvider"/>的数据层接口.</summary>
    public interface ISubjectDao {        

		/// <summary>获取数据库表记录数.</summary>
		int GetSubjectsCount();

		/// <summary>使用主键查询 <see cref="Subject"/> 对象.</summary>
		Subject GetSubject(Int32 iD);


		/// <summary>获取所有 Subject 的集合.</summary>
		IList<Subject> GetAllSubjects();


		/// <summary>插入 Subject 对象到数据库表.</summary>
		void CreateSubject(Subject obj);		

		/// <summary>更新数据库 Subject 对象.</summary>
		void UpdateSubject(Subject obj);

		/// <summary>从数据库中删除 Subject 对象.</summary>
		void DeleteSubject(Subject obj);

        /// <summary>根据 <see cref="Subject.ID"/> 删除 <see cref="Subject"/> 对象 </summary>
		int DeleteSubjectByID(Int32 iD);

		/// <summary>从数据库中重新加载 Subject 对象.</summary>
		void ReloadSubject(Subject obj);
	}

}
